package com.bite.spring.ioc.service;


import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@ResponseBody
@Controller
//@RequestMapping("/service")
public class DemoService {
    @RequestMapping("/hello")
    public void print(){
        System.out.println("hello service...");
    }

    @RequestMapping("/hello2")
    public String printf(){
        return "<h1>hello service...</h1>";
    }

}
